<div class="fly-panel fly-column">
  <div class="layui-container">
    <%--首页（显示所有消息）、
    公告（显示所有公告）、
    二手（按照时间，显示所有二手帖）、
    图文（按照时间，显示所有图文帖）、
    我的关注（显示包含关键词的所有内容，添加删除关键词）
    小红点<span class="layui-badge-dot"></span>--%>
    <ul class="layui-clear">
      <li class="<c:if test="${empty itype}">layui-hide-xs layui-this</c:if>"><a
            href="${pageContext.request.contextPath}/index">首页</a></li>
      <li class="<c:if test="${itype==7}">layui-hide-xs layui-this</c:if>"><a
              href="${pageContext.request.contextPath}/index/type?type=热议">热议</a></li>
      <li class="<c:if test="${itype==1}">layui-hide-xs layui-this</c:if>"><a
              href="${pageContext.request.contextPath}/index/type?type=公告">公告</a></li>
      <li class="<c:if test="${itype==2}">layui-hide-xs layui-this</c:if>"><a
              href="${pageContext.request.contextPath}/index/type?type=图文">图文</a></li>
      <li class="<c:if test="${itype==3||itype==4||itype==5}">layui-hide-xs layui-this</c:if>"><a
              href="${pageContext.request.contextPath}/index/type?type=二手">二手</a></li>
      <li class="<c:if test="${itype==6}">layui-hide-xs layui-this</c:if>"><a
              href="${pageContext.request.contextPath}/index/type?type=捐赠">捐赠</a></li>
      <c:if test="${user.getUauth() == 1}"><i
        <li class="<c:if test="${itype==6}">layui-hide-xs layui-this</c:if>"><a
            href="${pageContext.request.contextPath}/admin">admin</a></li>
      </c:if>
      <c:if test="${not empty user}">
        <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block">
          <span class="fly-mid"></span>
        </li>
        <!-- 用户登入后显示 -->
        <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a
                href="${pageContext.request.contextPath}/user/home">我的发布</a></li>
        <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a
                href="${pageContext.request.contextPath}/focus">我的关注</a></li>
      </c:if>
    </ul>

    <div class="fly-column-right layui-hide-xs">
      <span class="fly-search"><i class="layui-icon"></i></span>
      <a href="${pageContext.request.contextPath}/item/add" class="layui-btn">发布</a>
    </div>
    <div class="layui-hide-sm layui-show-xs-block"
         style="margin-top: -10px; padding-bottom: 10px; text-align: center;">
      <a href="${pageContext.request.contextPath}/item/add" class="layui-btn">发布</a>
    </div>
  </div>
</div>